import ox api = ox.API('http://archive.arabdigitalexpression.org/api/')
data = api.findMedia (query={'conditions': []}, keys=['id', 'path', 'duration'], range=[0, 100000])['data']['items']
noduration = filter(lambda f: (f['duration'] or -1) < 0, data) print noduration
data = api.findMedia(query={'conditions': [{'key': 'duration', 'value': 0, 'operation': '<'}]}, keys=['id', 'path', 'duration'], range=[0, 100000])['data']['items']
add = lambda a,b: a+b
add(1, 2) == 3